package com.bootdo.clouddo.domain.douban;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

public class DbBookReview {

    @Id
    @Column(name="id",length=50, unique=true)
    private Long id;

    private String rating;

    private Double ratingValue;

    private Integer readCount;

    @Column(name = "`abstract`")
    private String abstr;

    private String topic;

    private Date createTime;

    private Integer collectionsCount;

    private Integer resharesCount;

    private Integer voteStatus;

    private String title;

    private String typeName;

    private Boolean isCollected;

    private String type;

    private Integer reactionType;

    private Integer usefulCount;

    private String coverUrl;

    private Integer timelineShareCount;

    private Integer uselessCount;

    private Long userId;

    @Transient
    private DbUser user;

    private Integer spoiler;

    private String rtype;

    private Integer likersCount;

    private String replyLimit;

    private Integer reactionsCount;

    private Integer commentsCount;

    private Date addTime;

    @JsonIgnore
    private String subjectCard;

    private Long subjectId;

    public String getSubjectCard() {
        return subjectCard;
    }

    public void setSubjectCard(String subjectCard) {
        this.subjectCard = subjectCard;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAbstr() {
        return abstr;
    }

    public void setAbstr(String abstr) {
        this.abstr = abstr;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getRating() {
        return rating;
    }

    public void setRating(String rating) {
        this.rating = rating;
    }

    public Double getRatingValue() {
        return ratingValue;
    }

    public void setRatingValue(Double ratingValue) {
        this.ratingValue = ratingValue;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCollectionsCount() {
        return collectionsCount;
    }

    public void setCollectionsCount(Integer collectionsCount) {
        this.collectionsCount = collectionsCount;
    }

    public Integer getResharesCount() {
        return resharesCount;
    }

    public void setResharesCount(Integer resharesCount) {
        this.resharesCount = resharesCount;
    }

    public Integer getVoteStatus() {
        return voteStatus;
    }

    public void setVoteStatus(Integer voteStatus) {
        this.voteStatus = voteStatus;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Boolean getCollected() {
        return isCollected;
    }

    public void setCollected(Boolean collected) {
        isCollected = collected;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getReactionType() {
        return reactionType;
    }

    public void setReactionType(Integer reactionType) {
        this.reactionType = reactionType;
    }

    public Integer getUsefulCount() {
        return usefulCount;
    }

    public void setUsefulCount(Integer usefulCount) {
        this.usefulCount = usefulCount;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Integer getTimelineShareCount() {
        return timelineShareCount;
    }

    public void setTimelineShareCount(Integer timelineShareCount) {
        this.timelineShareCount = timelineShareCount;
    }

    public Integer getUselessCount() {
        return uselessCount;
    }

    public void setUselessCount(Integer uselessCount) {
        this.uselessCount = uselessCount;
    }

    public Integer getSpoiler() {
        return spoiler;
    }

    public void setSpoiler(Integer spoiler) {
        this.spoiler = spoiler;
    }

    public String getRtype() {
        return rtype;
    }

    public void setRtype(String rtype) {
        this.rtype = rtype;
    }

    public Integer getLikersCount() {
        return likersCount;
    }

    public void setLikersCount(Integer likersCount) {
        this.likersCount = likersCount;
    }

    public String getReplyLimit() {
        return replyLimit;
    }

    public void setReplyLimit(String replyLimit) {
        this.replyLimit = replyLimit;
    }

    public Integer getReactionsCount() {
        return reactionsCount;
    }

    public void setReactionsCount(Integer reactionsCount) {
        this.reactionsCount = reactionsCount;
    }

    public Integer getCommentsCount() {
        return commentsCount;
    }

    public void setCommentsCount(Integer commentsCount) {
        this.commentsCount = commentsCount;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Long getUserId() {
        return userId;
    }

    public Long getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }

    public DbUser getUser() {
        return user;
    }

    public void setUser(DbUser user) {
        this.user = user;
    }
}